package com.ruoyi.suggestion.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 社区建议对象 community_suggestion
 * 
 * @author xianyu
 * @date 2025-04-02
 */
public class CommunitySuggestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private String remark;

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** id */
    private Long id;

    /** 提交人 */
    @Excel(name = "提交人")
    private Long userId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 分类 */
    @Excel(name = "分类")
    private String category;

    /** pending/approved/rejected/implemented */
    @Excel(name = "pending/approved/rejected/implemented")
    private String status;

    /** 浏览次数 */
    @Excel(name = "浏览次数")
    private Long viewCount;

    /** 获得积分 */
    @Excel(name = "获得积分")
    private Long earnedPoints;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setViewCount(Long viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Long getViewCount() 
    {
        return viewCount;
    }

    public void setEarnedPoints(Long earnedPoints) 
    {
        this.earnedPoints = earnedPoints;
    }

    public Long getEarnedPoints() 
    {
        return earnedPoints;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("category", getCategory())
            .append("status", getStatus())
            .append("viewCount", getViewCount())
            .append("earnedPoints", getEarnedPoints())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }

    public void setUserName(String userName) {
    }
}
